package com.dtx.JavaBasic.switStruct;

import java.util.Scanner;

/**
 * 使用switch把小写类型的char型转为大写，只转换a,b,c,d,e其他的输出‘other’
 */
public class Change {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入一个字符");
        String word = scanner.next();

        char c = word.charAt(0);

        switch (c){
            case 'a':
                System.out.println("A");
                break;
            case 'b':
                System.out.println("B");
                break;
            case 'c':
                System.out.println("C");
                break;
            case 'd':
                System.out.println("D");
                break;
            default:
                System.out.println("Other");
        }
    }
}
